import { createSSRApp } from "vue";
import App from "./App.vue";
import { setupRouter } from './router'
import { createPinia } from 'pinia'
const pinia = createPinia()
export function createApp() {
  const app = createSSRApp(App)

  Promise.resolve().then(() => {
    setupRouter()
  })
  app.use(pinia)
  return {
    app
  }
}
